* {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 微软雅黑;
    box-sizing: border-box;
    text-decoration: none;
}
html,body{
    background-color: #e7e7e7;
}
#im-app{
    width: 100%;
}
/****************list***************/
.list-box {
    width: 100%;
    background-color: #e8e8e8;
}

.list-box .list {
    padding: 12px 15px;
    display: flex;
    color: #444;
    border-bottom: 1px solid #e7e7e7;
    background-color: #fff;
}

.list-box .list .head-img {
    height: 44px;
    width: 44px;
    background-image: url("../img/head-img.jpg");
    background-position: 50%;
    background-size: cover;
    border-radius: 44px;
    margin-right: 15px;
    position: relative;
}
.list-box .list .head-img .unread-num{
    position: absolute;
    height: 20px;
    width: 20px;
    background-color: red;
    color: #fff;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    top: -5px;
    right: -5px;
    border-radius: 100%;
}

.list-box .list .content {
    flex: 1;
}

.list-box .list .content p:nth-child(1) {
    align-self: flex-start;
}

.list-box .list .content p:nth-child(2) {
    align-self: flex-end;
    color: #999;
    font-size: 14px;
}
.list-box .list .send-time{
    width: 60px;
    color: #e7e7e7;
    text-align: right;
    font-size: 14px;
}


/****************talk-info***************/
.talk-info{
    width: 100%;
}
.talk-info .line{
    width: 100%;
    padding: 15px;
    display: flex;
}
.line .head-img{
    height: 40px;
    width: 40px;
    background-image: url("../img/head-img.jpg");
    background-position: 50%;
    background-size: cover;
    border-radius: 40px;
    margin-right: 10px;
    margin-top: 5px;
    position: relative;
}

.line .content{
    width: calc(100% - 100px);

}
.line .content .info{
    padding: 10px 15px;
    background-color: #2aabd2;
    border-radius: 10px;
    white-space: normal;
    color: #333;
    font-size: 14px;
    display: inline-block;
    position: relative;
}

.line .content .info:before{
    content: "";
    position: absolute;
    top: 10px;
    left: -17px;
    display: block;
    height: 0;
    width: 0;
    border: 10px solid transparent;
    border-right-color: #2aabd2;
}

.talk-info{
    padding-bottom: 50px;
}

.talk-info .line.other{
    justify-content: flex-start;
}
.talk-info .line.my{
    justify-content: flex-end;
}
.talk-info .line.my .head-img{
    margin-right: 0px;
}
.talk-info .line.my .content{
    text-align: right;
    margin-right: 10px;
}
.talk-info .line.my .info{
    text-align: left;
}
.talk-info .line.my .info:before{
    left: auto;
    right: -17px;
    content: "";
    position: absolute;
    top: 10px;
    display: block;
    height: 0;
    width: 0;
    border: 10px solid transparent;
    border-left-color: #2aabd2;
}
.send_box{
    min-height: 50px;
    max-height: 150px;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    display: -webkit-flex;
    position: fixed;
    bottom: 0;
    left: 0;
    border-top: 1px solid #e8e8e8;
    background-color: #fff;
}

.send_box textarea{
    flex: 1;
    -webkit-flex: 1;
    padding: 5px;
    resize:none;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    line-height: 22px;
    height: 36px;
    outline: none;
}
.send_box textarea:focus{
    border: 1px solid #e7e7e7;
}
.send_box span{
    width: 60px;
    height: 36px;
    background: red;
    color: #fff;
    line-height: 36px;
    text-align: center;
    margin-left: 10px;
    border-radius: 3px;
}